package org.openlvb.openlvp.calendar;

import java.util.Locale;

import com.vaadin.addon.calendar.ui.Calendar;
import com.vaadin.addon.calendar.ui.Calendar.TimeFormat;
import com.vaadin.ui.VerticalLayout;

public class CalendarMainPanel extends VerticalLayout{

	private Calendar cal;
	
	public CalendarMainPanel(CalendarPanel calendarPanel) {
		cal = new Calendar(new OpenLVPCalendarEventProvider());
		cal.setHeight("100%");
		cal.setWidth("100%");
		cal.setTimeFormat(TimeFormat.Format24H);
		cal.setLocale(Locale.FRANCE);
		cal.setVisibleHoursOfDay(7, 22);
		addComponent(cal);
	}
	
	public Calendar getCalendar(){
		return cal;
	}
}
